GXSetCurve
You can use theGXSetCurve
function to change the geometry of a curve shape.
void GXSetCurve(gxShape target, const gxCurve *data);
target
- A reference to the curve shape whose geometry you want to change.
data
- A pointer to the new curve geometry.
DESCRIPTION
TheGXSetCurve
function copies the geometry information from thedata
parameter into the geometry property of the target shape. If the target shape is not a curve shape, this function replaces the target shape with a curve shape and sets the shape fill to open-frame fill.You must provide a pointer to a
gxCurve
structure in thedata
parameter--if you passnil
for this parameter, the function posts the error codeparameter_is_nil
.If the target shape is locked (that is, its
gxLockedShape
shape attribute is set), this function posts the errorshape_access_not_allowed
.ERRORS, WARNINGS, AND NOTICES
Errors out_of_memory shape_is_nil parameter_is_nil (debugging version) shape_access_not_allowed (debugging version) SEE ALSO
For general information about curve geometries, see "Curve Shapes" on page 2-18.For the definition of the
gxCurve
structure, see page 2-105.To create a new curve shape, use the
GXNewCurve
function, which is described on page 2-113.To examine the geometry of an existing curve shape, use the
GXGetCurve
function, which is described on page 2-125.To draw a curve geometry without creating a curve shape, use the
GXDrawCurve
function, which is described on page 2-159. To draw a curve shape, use theGXDrawShape
function, which is described in the chapter "Shape Objects" in Inside Macintosh: QuickDraw GX Objects.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help